<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    .d1:hover .box1 {
      transform: translate(1000px, 10px);
    }

    .d1 {
      border: 1px solid red;
    }

    .box1 {
      width: 200px;
      height: 300px;
      background-color: skyblue;
      transition: all 0.5s ease-in 1000ms;
    }

    .d2:hover .box2 {
      transform: scale(1.4)
        /* 分XY只写一个都变 */
    }

    .d2 {
      border: 1px solid red;
    }

    .box2 {
      width: 200px;
      height: 300px;
      background-color: skyblue;
      transition: all 2s linear 1000ms;
    }

    .d3:hover .box3 {
      transform: rotate(90deg)
        /* 分XY只写一个都变 */
    }

    .d3 {
      border: 1px solid red;
    }

    .box3 {
      width: 200px;
      height: 300px;
      background-color: skyblue;
      transition: all 2s linear 1000ms;
      transform-origin: left top;
    }
  </style>
</head>

<body>
  <div class="d1">
    <h1>平移</h1>
    <div class="box1"></div>
  </div>
  <div class="d2">
    <h1>平移</h1>
    <div class="box2"></div>
  </div>
  <div class="d3">
    <h1>平移</h1>
    <div class="box3"></div>
  </div>

</body>

</html>